/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainScreen.java
 *
 * Created on Jul 7, 2012, 12:06:27 AM
 * 
 */
package monitor;

import java.awt.Color;
import java.awt.Container;

/**
 *
 * @author FrostBiteX77
 */
public class MainScreen extends javax.swing.JFrame {

    private Container c;
    /** Creates new form MainScreen */
    public MainScreen() {
        initComponents();
        ViewLbl.setVisible(false);
        AddLbl.setVisible(false);
        ExitLbl.setVisible(false);
        c = getContentPane();
        c.setBackground(Color.white);

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        BtnExit = new javax.swing.JButton();
        BtnAdd = new javax.swing.JButton();
        BtnView = new javax.swing.JButton();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        ViewLbl = new javax.swing.JLabel();
        DescLbl = new javax.swing.JLabel();
        AddLbl = new javax.swing.JLabel();
        ExitLbl = new javax.swing.JLabel();
        DescLbl2 = new javax.swing.JLabel();
        LogoLbl = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("PTS MONITORING SYSTEM");
        setBackground(new java.awt.Color(255, 143, 158));
        setForeground(new java.awt.Color(255, 255, 255));

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/DLSU LOGO.png"))); // NOI18N
        jLabel4.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        BtnExit.setBackground(new java.awt.Color(255, 255, 255));
        BtnExit.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnExit.setForeground(new java.awt.Color(0, 153, 0));
        BtnExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/exit2.png"))); // NOI18N
        BtnExit.setText("Exit");
        BtnExit.setBorderPainted(false);
        BtnExit.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnExit.setFocusable(false);
        BtnExit.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BtnExit.setIconTextGap(16);
        BtnExit.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BtnExitMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BtnExitMouseExited(evt);
            }
        });
        BtnExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnExitActionPerformed(evt);
            }
        });

        BtnAdd.setBackground(new java.awt.Color(255, 255, 255));
        BtnAdd.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnAdd.setForeground(new java.awt.Color(0, 153, 0));
        BtnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Add.png"))); // NOI18N
        BtnAdd.setText("Add");
        BtnAdd.setBorderPainted(false);
        BtnAdd.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnAdd.setFocusable(false);
        BtnAdd.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BtnAdd.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        BtnAdd.setIconTextGap(16);
        BtnAdd.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BtnAddMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BtnAddMouseExited(evt);
            }
        });
        BtnAdd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnAddActionPerformed(evt);
            }
        });

        BtnView.setBackground(new java.awt.Color(255, 255, 255));
        BtnView.setFont(new java.awt.Font("Modern No. 20", 0, 22));
        BtnView.setForeground(new java.awt.Color(0, 153, 0));
        BtnView.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/view.png"))); // NOI18N
        BtnView.setText("View/Edit");
        BtnView.setToolTipText("Allows you to view and/or edit tutors, tutees or schedules");
        BtnView.setBorderPainted(false);
        BtnView.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        BtnView.setFocusable(false);
        BtnView.setIconTextGap(16);
        BtnView.setRolloverEnabled(false);
        BtnView.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BtnViewMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BtnViewMouseExited(evt);
            }
        });
        BtnView.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnViewActionPerformed(evt);
            }
        });

        ViewLbl.setFont(new java.awt.Font("Modern No. 20", 0, 20));
        ViewLbl.setText("Allows you to view and/or edit tutors, tutees and/or schedules.");
        ViewLbl.setBounds(40, 0, 500, 50);
        jLayeredPane1.add(ViewLbl, javax.swing.JLayeredPane.DEFAULT_LAYER);

        DescLbl.setFont(new java.awt.Font("Modern No. 20", 0, 20));
        DescLbl.setText("<html>Peer Tutor Society Monitoring System is a small</br> and compact software that provides monitoring assistance to</br> the Peer Tutor Society. It aims to monitor the tutor-tutee assignments,</br> profiles and the overall activity of  the Peer Tutor Society.</html>");
        DescLbl.setFocusable(false);
        DescLbl.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        DescLbl.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
        DescLbl.setBounds(40, 0, 500, 120);
        jLayeredPane1.add(DescLbl, javax.swing.JLayeredPane.DEFAULT_LAYER);

        AddLbl.setFont(new java.awt.Font("Modern No. 20", 0, 20));
        AddLbl.setText("<html>Allows you to add tutor and/or tutee profiles which also includes the schedule.</html>\n");
        AddLbl.setBounds(40, 90, 490, 50);
        jLayeredPane1.add(AddLbl, javax.swing.JLayeredPane.DEFAULT_LAYER);

        ExitLbl.setFont(new java.awt.Font("Modern No. 20", 0, 20)); // NOI18N
        ExitLbl.setText("Closes the system.");
        ExitLbl.setBounds(40, 170, 470, 50);
        jLayeredPane1.add(ExitLbl, javax.swing.JLayeredPane.DEFAULT_LAYER);

        DescLbl2.setText("<html> For other questions and/or informations, please contact us:<br>Tophe Guevara (tophe.guevara@gmail.com)<br>Charles Ngo (charlito_ngo@gmail.com)<br>Solomon Chua (slmnchua@gmail.com)<br>Mervinlee Tan (mervinleetan@gmail.com)</html>\n");
        DescLbl2.setBounds(40, 130, 360, 100);
        jLayeredPane1.add(DescLbl2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        LogoLbl.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/LOGO2.png"))); // NOI18N
        LogoLbl.setText("75% Chinese 25% Awesome");
        LogoLbl.setBounds(300, 150, 230, 80);
        jLayeredPane1.add(LogoLbl, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel3)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(393, 393, 393)
                        .addComponent(jLabel2))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(BtnExit, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(41, 41, 41)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(BtnView, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                                    .addComponent(BtnAdd, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 586, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(24, 24, 24))))
            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 844, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel4)
                .addGap(18, 18, 18)
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(101, 101, 101)
                        .addComponent(jLabel3))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(BtnView, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BtnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BtnExit, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void BtnExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnExitActionPerformed
// TODO add your handling code here:
    this.setVisible(false);
    this.dispose();
    System.exit(1);
}//GEN-LAST:event_BtnExitActionPerformed

private void BtnViewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnViewActionPerformed
// TODO add your handling code here:
    ViewOptions view = new ViewOptions();
    view.setLocationRelativeTo(null);
    view.setVisible(true);
}//GEN-LAST:event_BtnViewActionPerformed

private void BtnAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnAddActionPerformed
// TODO add your handling code here:
    AddOptions options = new AddOptions();
    options.setLocationRelativeTo(null);
    options.setVisible(true);
    
}//GEN-LAST:event_BtnAddActionPerformed

private void BtnViewMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnViewMouseEntered
// TODO add your handling code here:
    ViewLbl.setVisible(true);
    AddLbl.setVisible(false);
    ExitLbl.setVisible(false);
    DescLbl.setVisible(false);
    DescLbl2.setVisible(false);
    LogoLbl.setVisible(false);
    
}//GEN-LAST:event_BtnViewMouseEntered

private void BtnViewMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnViewMouseExited
// TODO add your handling code here:
    ViewLbl.setVisible(false);
    DescLbl.setVisible(true);
    DescLbl2.setVisible(true);
    LogoLbl.setVisible(true);
}//GEN-LAST:event_BtnViewMouseExited

private void BtnAddMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnAddMouseEntered
// TODO add your handling code here:
    ViewLbl.setVisible(false);
    AddLbl.setVisible(true);
    ExitLbl.setVisible(false);
    DescLbl.setVisible(false);
    DescLbl2.setVisible(false);
    LogoLbl.setVisible(false);
}//GEN-LAST:event_BtnAddMouseEntered

private void BtnExitMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnExitMouseEntered
// TODO add your handling code here:
    ViewLbl.setVisible(false);
    AddLbl.setVisible(false);
    ExitLbl.setVisible(true);
    DescLbl.setVisible(false);
    DescLbl2.setVisible(false);
    LogoLbl.setVisible(false);
}//GEN-LAST:event_BtnExitMouseEntered

private void BtnExitMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnExitMouseExited
// TODO add your handling code here:
    ExitLbl.setVisible(false);
    DescLbl.setVisible(true);
    DescLbl2.setVisible(true);
    LogoLbl.setVisible(true);
}//GEN-LAST:event_BtnExitMouseExited

private void BtnAddMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BtnAddMouseExited
// TODO add your handling code here:
    AddLbl.setVisible(false);
    DescLbl.setVisible(true);
    DescLbl2.setVisible(true);
    LogoLbl.setVisible(true);
}//GEN-LAST:event_BtnAddMouseExited

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainScreen().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel AddLbl;
    private javax.swing.JButton BtnAdd;
    private javax.swing.JButton BtnExit;
    private javax.swing.JButton BtnView;
    private javax.swing.JLabel DescLbl;
    private javax.swing.JLabel DescLbl2;
    private javax.swing.JLabel ExitLbl;
    private javax.swing.JLabel LogoLbl;
    private javax.swing.JLabel ViewLbl;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLayeredPane jLayeredPane1;
    // End of variables declaration//GEN-END:variables
}
